package com.hiultra.archive.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hiultra.common.annotation.Excel;
import com.hiultra.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 非法携带盒记录对象 archive_box_illegal_records
 *
 * @author 派大星
 * @date 2024-07-23
 */
public class ArchiveBoxIllegalRecords extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    private Long id;

    /**
     * 供电单位编号
     */
    private String orgNo;

    /**
     * 接口编号
     */
    private String serviceCode;

    /**
     * 档案档案室编号
     */
    @Excel(name = "档案室编号", needMerge = true)
    private String roomNo;

    /**
     * 告警时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "告警时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", needMerge = true)
    private Date alarmTime;

    /**
     * 推送状态 （01 已推送 02 未推送）
     */
    private String status;

    /**
     * 推送状态01 已推送 02 未推送
     */
    @Excel(name = "推送状态", readConverterExp = "01=已推送,02=未推送", needMerge = true)
    private String pushStatus;

    @Excel(name = "非法携带盒记录详细")
    private List<ArchiveBoxIllegalDetailRecords> boxList;

    public List<ArchiveBoxIllegalDetailRecords> getBoxList() {
        return boxList;
    }

    public void setBoxList(List<ArchiveBoxIllegalDetailRecords> boxList) {
        this.boxList = boxList;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrgNo(String orgNo) {
        this.orgNo = orgNo;
    }

    public String getOrgNo() {
        return orgNo;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }

    public String getRoomNo() {
        return roomNo;
    }

    public void setAlarmTime(Date alarmTime) {
        this.alarmTime = alarmTime;
    }

    public Date getAlarmTime() {
        return alarmTime;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setPushStatus(String pushStatus) {
        this.pushStatus = pushStatus;
    }

    public String getPushStatus() {
        return pushStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orgNo", getOrgNo())
                .append("serviceCode", getServiceCode())
                .append("roomNo", getRoomNo())
                .append("alarmTime", getAlarmTime())
                .append("status", getStatus())
                .append("pushStatus", getPushStatus())
                .toString();
    }
}
